import request from '@/z/function/request.js';

// 物流订单-物流订单列表-添加
export function getAdd(query) {
	return request({
		url: '/pigx-logistics/logisticsOrder',
		method: 'post',
		data: query,
	});
}
// 物流订单-物流订单列表-修改
export function getupdate(query) {
	return request({
		url: '/pigx-logistics/logisticsOrder',
		method: 'PUT',
		data: query,
	});
}
// 物流订单-物流订单列表-删除
export function getDelete(query) {
	return request({
		url: '/pigx-logistics/logisticsOrder',
		method: 'DELETE',
		data: query,
	});
}
// 物流订单-物流订单列表-查询
export function getPage(query) {
	return request({
		url: '/pigx-logistics/logisticsOrder/page',
		method: 'get',
		data: query,
	});
}
export function getPageid(id) {
	return request({
		url: `/pigx-logistics/logisticsOrder/${id}`,
		method: 'get',
	});
}
// 物流订单-物流修改送货类型 updateDeliveryTypeInfo
export function updateDeliveryTypeInfo(query) {
	return request({
		url: '/pigx-logistics/logisticsOrder/updateDeliveryTypeInfo',
		method: 'post',
		data: query,
	});
}
export function updateDeliveryTimeInfo(query) {
	return request({
		url: '/pigx-logistics/logisticsOrder/updateDeliveryTimeInfo',
		method: 'post',
		data: query,
	});
}
export function outboundDelivery(query) {
	return request({
		url: '/pigx-logistics/logisticsOrder/outboundDelivery',
		method: 'post',
		data: query,
	});
}
export function addPorters(query) {
	return request({
		url: '/pigx-logistics/logisticsOrder/addPorters',
		method: 'post',
		data: query,
	});
}

// export function listMallOrderProductsByOrderId(id) {
// 	return request({
// 		url: `/pigx-mall/mallOrder/listMallOrderProductsByOrderId/${id}`,
// 		method: 'GET',
// 		// data: query,
// 	});
// }
export function listMallOrderProductsByOrderId(id) {
	return request({
		url: `/pigx-warehouse/erp/stock-out/get?id=${id}`,
		method: 'GET',
		// data: query,
	});
}
// export function getPageid(id) {
// 	return request({
// 		url: `pigx-logistics/logisticsOrder/${id}`,
// 		method: 'get',
// 	});
// }